﻿namespace BlamanticUI.Components.Forms;

/// <summary>
/// Represents a group of <see cref="Field"/> in one row in <see cref="Form"/> component.
/// </summary>
[CssClass("fields")]
public class FieldGroup : BlazorChildContentComponentBase, IHasInline, IHasSpan, IHasEqualWidth
{
    /// <summary>
    /// Gets or sets a value indicating whether is inlined in one row.
    /// </summary>
    [Parameter] public bool Inline { get; set; }
    /// <summary>
    /// Gets or sets the span for each <see cref="Field"/> component.
    /// </summary>
    [Parameter] public SpanSize? Span { get; set; }
    /// <summary>
    /// Gets or sets a value indicating whether each <see cref="Field"/> has equal width.
    /// </summary>
    [Parameter] public bool EqualWidth { get; set; }
}
